<?php

/**
 * APP下载
 * File Name：AppController.php
 * File Encoding：UTF-8
 * File New Time：2014-10-10 15:22:59
 * Author：水平凡
 * Mailbox：admin@abc3210.com
 */
class AppController extends FrontBaseC {

    /**
     * APP用户下载
     * @return [type] [description]
     */
    public function actionDownload() {
        if (stripos($_SERVER['HTTP_USER_AGENT'], 'iphone') === false) {//安卓
            $this->redirect('/app/android/yzw.apk');
        } else {//iphone
//            header('Content-Type: text/html; charset=UTF-8');
//            exit('iOS版本开发中,敬请期望');
            $this->redirect('https://itunes.apple.com/us/app/1zhe-wang/id914988082?l=zh&ls=1&mt=8');
        }
    }

}
